
import Mock from "mockjs";
import { getRuleList, deleteRuleList, postRuleList } from './rule-list/index';
import { getQualityList, deleteQualityList, postQualityList } from './quality-list/index';
import { getQualityScheme, deleteQualityScheme, postQualityScheme } from "./quality-scheme";
import { deleteJobManagement, getJobManagement, postJobManagement } from "./job-management";

Mock.setup({ timeout: 500 })

// Mock.mock(/\/api\/messages/, 'get', getRuleList)
Mock.mock(`/api/rule-management/list`, 'get', getRuleList);
Mock.mock(`/api/rule-management/{id}`, 'delete', deleteRuleList);
Mock.mock(`/api/addrules`, 'post', postRuleList);


Mock.mock(`/api/quality-tetection/list`, 'get', getQualityList);
Mock.mock(`/api/qualiatyTetection/{id}`, 'delete', deleteQualityList);
Mock.mock(`/api/add-quality-tetection`, 'post', postQualityList);

Mock.mock(`/api/quality-scheme/list`, 'get', getQualityScheme);
Mock.mock(`/api/quality-scheme/{id}`, 'delete', deleteQualityScheme);
Mock.mock(`/api/quality-scheme/add`, 'post', postQualityScheme);

Mock.mock(`/api/job-management/list`, 'get', getJobManagement);
Mock.mock(`/api/job-management/{id}`, 'delete', deleteJobManagement);
Mock.mock(`/api/job-management/add`, 'post', postJobManagement);